package zisu.netty.practice.netty.groupchat;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Author: 蔡翔
 * @Date: 2020/7/19 19:01
 * @Version 1.0
 */
//出入栈的 数据类型是String， 约定好如是String 出也是 String
public class GroupChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println(s.trim()+" 客户端handler");
    }
}
